﻿
--[[
   @brief    model module for poptips ui
   @author   dragonqiu
   @version  1.0
   @date     2015-03-18
--]]

poptips_model =
{
    model = true;

    --默认配置
    defaultSetting = {
        position = "center",
        textSize = 12,
        textWeight = 400
    };

    ticker = {};

    ticker_id = 0;

    -- 控件数据
    ctr_data = {};

    game_running_state = 0;

    winfo_num = 0;

    waiting_tips_info = {};

    current_tips_auto_close = false;

    tips_mgr = nil;

    waiting_common_tips_count = 0;

    waiting_common_tips_list = {};

    rich_text_url = "";

    hold_in_bp_ui_tips_count = 0;

    hold_in_bp_ui_tips_list = {};

    cur_ui_mode = base_utility.CLIENT_UI_MODE.NORMAL_WINDOW_UI;

    poptips_default_url = LoadStr("CONFIRM_TIPS_URL");  -- 确认框

    init = function()
        ierd_tgp.tpf_ui.Log("[poptips_model] init.");
    end;

    get_tips_mgr = function()
        if nil == poptips_model.tips_mgr then
            poptips_model.tips_mgr =
            base_utility.get_component_adapter("ITIPS_mgr",
                "ierd_tgp.tips_mgr.GetTipsMgrModule();");
        end;
        return poptips_model.tips_mgr;
    end;

};

poptips_model.init();
